home *** CD-ROM | disk | FTP | other *** search
- Path: inforamp.net!ts53-10
- From: rmorin@inforamp.net (Randy Charles Morin)
- Newsgroups: comp.lang.c++
- Subject: Re: Coding Standards
- Date: Fri, 29 Mar 96 23:27:44 GMT
- Organization: MiddleWorld SoftWare
- Message-ID: <4jhrm9$rdm@sam.inforamp.net>
- References: <4hj8ek$elu@sam.inforamp.net> <4hktar$5o2@galaxy.ucr.edu> <4io1a4$n9v@sam.inforamp.net> <4j8sdf$575@slbh00.bln.sel.alcatel.de> <3159B8F0.22C6@datalytics.com>
- NNTP-Posting-Host: ts53-10.tor.istar.ca
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <3159B8F0.22C6@datalytics.com>,
- Rob Stewart <stew@datalytics.com> wrote:
- >I can locate 100+ classes in my work and that of my coworkers.
- >I don't think any of them have 50 line copy ctors. My questions
- >are whether there are other functions (members or not) that
- >would offload some of the behavior or whether the classes have
- >too many dms. Most copy ctors do about what a normal ctor
- >does--they must initialize or assign to the same dms--with some
- >additional logic in place to handle reference counting or
- >resource duplication.
- >How is your copy ctors come to be so long?
-
- When I say 50 lines per copy constructor, I'm talking 25 from
- the copy constructor and 25 more for the assignment operator.
- If you followed the entire thread and read my calculations you'd
- see that is what I meant. Had I meant 50 lines each, then the
- result of the calculation would have been 200 hours. Sorry
- for any confusion I created.
-
- Agrivar
-
-
- Agrivar
-
- aka Randy Charles Morin
- MiddleWorld SoftWare
- Canada: 1-800-363-3780
- Other: 905-279-2087
-